<!DOCTYPE html>
<html>
        <head>
                <title>TODO supply a title</title>
                <meta charset="UTF-8">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css" />
                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/button.css" />
                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/table.css" />
                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/navi-bar.css" />
                <!--<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/tbox.css" />-->
                <script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.0.min.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/layer/layer.min.js"></script>
                <script type="text/javascript">
                        $(function() {
                                /*
                                $("#a").click(function() {
                                        layer.alert("test");
                                });
                                */
                                //layer.alert("This is a test!");
                                /*
                                var items = document.getElementsByTagName("dl");
                                for (var i = 1; i <= items.length; i++) {
                                        $("#func_" + i + "_content").hide();
                                        menu_click(i);
                                }
                                */

                                $(".subNav").click(function() {
                                        $(this).toggleClass("currentDd").siblings(".subNav").removeClass("currentDd")
                                        $(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt")
                                        // 修改数字控制速度， slideUp(500)控制卷起速度
                                        $(this).next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
                                });

                                $("a").click(function() {
                                        $(".on").removeClass("on");
                                        if ($(this).attr("data-id") === "user") {
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/User/menu/');
                                        }else if($(this).attr("data-id") === "index"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/Index/menu/');
                                        }else if($(this).attr("data-id") === "feedback"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/Feedback/menu/');
                                        }else if($(this).attr("data-id") === "fish_date"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/Fishdate/menu/');
                                        }else if($(this).attr("data-id") === "news"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/News/menu/');
                                        }else if($(this).attr("data-id") === "fish_place"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/Fishplace/menu/');
                                        }else if($(this).attr("data-id") === "system"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/System/menu/');
                                        }else if($(this).attr("data-id") === "fish_equ"){
                                                $(this).parent().addClass("on");
                                                create_left_menu('__APP__/Home/Equipment/menu/');
                                        }
                                       
                                });
                                
                                $("li").find("a").click(function(){
                                                        if($(this).attr("href") !== '#'){
                                                                
                                                                $.ajax({
                                                                        type:"GET",
                                                                        url:$(this).attr("href"),
                                                                        dataType: "html",
                                                                        success:function(msg){
                                                                                $(".midder").html(msg);
                                                                        }
                                                                        
                                                                });
                                                                
                                                        }
                                                        return false;
                                                });
                        });

                        /*
                         function menu_click(i) {
                         $("#func_" + i).click(function() {
                         $("#func_" + i + "_content").toggle(200);
                         });
                         }
                         */

                        function create_left_menu(url) {
                                //layer.alert("user");
                                $.ajax({
                                        type: "GET",
                                        url: url,
                                        dataType: "html",
                                        //data: {"time": new Date()},
                                        success: function(msg) {
                                                $(".subNavBox").html(msg);
                                                //给新添加的菜单绑定点击事件
                                                $(".subNav").click(function() {
                                                        $(this).toggleClass("currentDd").siblings(".subNav").removeClass("currentDd")
                                                        $(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt")
                                                        // 修改数字控制速度， slideUp(500)控制卷起速度
                                                        $(this).next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
                                                });
                                                $("li").find("a").click(function(){
                                                        if($(this).attr("href") !== '#'){
                                                                
                                                                $.ajax({
                                                                        type:"GET",
                                                                        url:$(this).attr("href"),
                                                                        dataType: "html",
                                                                        success:function(msg){
                                                                                $(".midder").html(msg);
                                                                        }
                                                                        
                                                                });
                                                                
                                                        }
                                                        return false;
                                                });
                                        }
                                });
                        }
                </script>
        </head>
        <body>
                <div class="header">
                        <div class="logo"><a href="#" >&nbsp;</a></div>
                        <div class="nav_sub">
                                您好,admin &nbsp; | <a href="#" target="_blank">返回前台</a> | 
                                <a href="javascript:void(0);" onclick="refresh();">刷新</a> | 
                                <!--
                                <a href="javascript:void(0);" id="J_flush_cache" hidefocus="true" data-uri="/ikphp/index.php?app=admin&c=cache&a=qclear" title="更新缓存">清除缓存</a> | 
                                -->
                                <a href="__APP__/Home/User/login/">[退出]</a><br>    
                        </div>
                        <ul class="nav" id="topnav">	
                                <li class="on">
                                        <a href="#" data-id="index">首页</a>
                                </li>
                                <li><a href="#" data-id="user">用户管理</a></li>
                                <li><a href="#" data-id="fish_place">钓场管理</a></li>
                                <li><a href="#" data-id="fish_date">约钓管理</a></li>
                                <li><a href="#" data-id="fish_equ">装备管理</a></li>
                                <li><a href="#" data-id="feedback">反馈管理</a></li>
                                <li><a href="#" data-id="news">时事资讯</a></li>
                                <li><a href="#" data-id="system">系统配置</a></li>
                                <!--
                                <li><a style="outline:none;" hidefocus="true" data-id="Group" href="javascript:;">装备管理</a></li>
                                <li><a style="outline:none;" hidefocus="true" data-id="Radio" href="javascript:;">电台管理</a></li>
                                <li><a style="outline:none;" hidefocus="true" data-id="Article" href="javascript:;">阅读管理</a></li>
                                -->
                        </ul>                   
                </div>

                <!--  <div id="main" style="background-color:#0095cd">-->
                <div id="main">
                        <div id="main-menu">
                                <div class="subNavBox">
                                        <div class="subNav currentDd currentDt">系统首页</div>
                                        <ul class="navContent " style="display:block">
                                                <li><a href="__APP__/Home/Index/sys_info" id="a">系统信息</a></li>
                                                <li><a href="#">菜单1</a></li>
                                                <li><a href="#">菜单2</a></li>
                                                <li><a href="#">菜单3</a></li>
                                        </ul>
                                        <div class="subNav">菜单2</div>
                                        <ul class="navContent">
                                                <li><a href="#">菜单1</a></li>
                                                <li><a href="#">菜单2</a></li>
                                                <li><a href="#">菜单3</a></li>
                                        </ul>

                                </div>
                        </div>
                        <div id="main-content">
                                <div class="midder">
                                        <ul id="message_list">
                                                <li class="message">您还没有删除 Apps目录下的 Install 文件夹，出于安全的考虑，我们建议您删除 Install 文件夹或者改名。</li>
                                                <li class="message">您网站的 DEBUG 没有关闭，出于安全考虑，我们建议您关闭程序 DEBUG。</li>    
                                        </ul>
                                        <div class="fbox">
                                                <h2>目录权限</h2>
                                                <table class="dataintable">
                                                        <tr>
                                                                <td width="40%">Data数据备份目录</td>
                                                                <td>可写</td>
                                                        </tr>
                                                        <tr>
                                                                <td>Data/upload上传文件目录</td>
                                                                <td>可写</td>
                                                        </tr>
                                                        <tr>
                                                                <td>Runtime/Data目录</td>
                                                                <td>可写</td>
                                                        </tr>
                                                        <tr>
                                                                <td>Runtime运行时目录</td>
                                                                <td>可写</td>
                                                        </tr>
                                                </table>
                                        </div>
                                </div>
                        </div>
                </div>
        </body>
</html>
